<?php
/* @var $this GraphtagController */
/* @var $model Graphtag */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'graphtag-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'tagName'); ?>
		<?php echo $form->dropDownList($model,'tagName',CHtml::listData($Tag,'tagName','tagName')); ?>
		<?php echo $form->error($model,'tagName'); ?>
	</div>
    
    <div class="row">
		<?php echo $form->labelEx($model,'graphId'); ?>
		<?php echo $form->dropDownList($model,'graphId',CHtml::listData($GraphConfiguration,'id','name')); ?>
		<?php echo $form->error($model,'graphId'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->